package com.luge.model.share;

import android.os.Handler;
import android.os.Message;

public abstract class OAuthHandler implements Handler.Callback{
	protected String weiboFalg;
	protected Handler handler = new Handler(this);
	
	public static final int START_QUEST_NET = 1;
	public static final int END_QUEST_NET = 2;
	public static final int SHARE_SUCCESS = 3;
	public static final int SHARE_FAIL = 4;
	
	protected void sendMessage(int what) {
		Message msg = new Message();
		msg.what = what;
		handler.sendMessage(msg);
	}

	protected void sendMessage(int what, int arg1) {
		Message msg = new Message();
		msg.what = what;
		msg.arg1 = arg1;
		handler.sendMessage(msg);
	}
	
	protected void sendMessage(int what, int arg1, int arg2) {
		Message msg = new Message();
		msg.what = what;
		msg.arg1 = arg1;
		msg.arg2 = arg2;
		handler.sendMessage(msg);
	}
	
	protected void sendMessage(int what, int arg1, Object obj) {
		Message msg = new Message();
		msg.what = what;
		msg.arg1 = arg1;
		msg.obj = obj;
		handler.sendMessage(msg);
	}
}
